home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part2 / 12174 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.1 KB

  1. Path: dsi.unimi.it!moreld
  2. From: moreld@dsi.unimi.it (~ZIO BUDDA~)
  3. Newsgroups: comp.lang.c++
  4. Subject: waning : const discard
  5. Date: 18 Mar 1996 15:03:28 GMT
  6. Organization: Computer Science Dep. - Milan University
  7. Message-ID: <4iju00$m68@tic.sm.dsi.unimi.it>
  8. NNTP-Posting-Host: tac.fddi.dsi.unimi.it
  9. X-Newsreader: TIN [version 1.2 PL2]
  10.  
  11. Hi, my question is :
  12. I use g++ 2.7.0 and the default Class String, but when I use in a program
  13. a line like 
  14. XDrawString(CXDisplay, CXWindow, CXGC, x, y, stringa, strlen(stringa));
  15.  
  16. if I use stringa like char * all is ok, but if a say that stringa is a 
  17. variable of Class String (aka String stringa;) the compiler
  18. return me a warning that say me that the const is discard. 
  19. Ok this is a warning, but I hate this warning. Help, this is for an exam
  20. and my prof hate warning. 
  21.  
  22. tnx in advance and sorry for my bad english
  23.  
  24.  
  25. --
  26. Zio Budda "sempre alla ricerca di un account..." moreld@ghost.dsi.unimi.it
  27. http://www.dsi.unimi.it/Users/Students/moreld/home.html
  28. Ask me for questions about LINUX and Games for PC, and see my home page 
  29. I'm a programmer and a consultant...
  30.  
  31. Tel. 02/2139959 ... Chiedere di Davide Michel
  32.